package hanjia;

/**
 * Description:
 * Author:    Dane
 * CreateTime:2025/2/10-下午5:40
 * Since  :   1.0
 * Version:   1.0
 */
public class LeetCode344 {

    public void reverseString(char[] s) {

      int left=0;
      int right=s.length-1;
      while (left<right){
        char temp=s[right];
        s[right]=s[left];
        s[left]=temp;
        left++;
        right--;
      }

    }
}
